let todolist = (
    function(){
        //私有变量
        let tasks =JSON.parse(localStorage.getItem('tasks'))||[]
        function savaToLocalStorage(){
            localStorage.setItem('tasks',JSON.stringify(tasks))
        }
        function renderTasks(filteredTaasks){

        }
        //添加
        function addTask(text){

        }
        //删除
        function removeTask(id){

        }
        //改变状态
        function changeStatus(id,completed){
            
        } 
        //分类
        function filterTasks(filter){

        }
        //统计
        function updateCount(){
            
        }
        return{
            addTask:addTask,
            savaToLocalStorage:savaToLocalStorage,
            renderTasks:renderTasks,
            removeTask:removeTask

        }

    }
)();